package com.hht.study.javaBase.collection.map;

/**
 * @author hht
 * @date 2022/3/7
 */
public class MapTest {

    public static void main(String[] args) {
        String a="abc";
        int hashcode=a.hashCode();
        //模拟数组长度
        int size=8;
        System.out.println("hashcode:"+hashcode+",index:"+(hashcode%(8-1)));
    }
}
